package com.ygqh.baby.mapper;

import com.ygqh.baby.ao.QueryInfo;
import com.ygqh.baby.po.AdminMaterialDetail;
import com.ygqh.baby.po.AdminMaterialDetailExample;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface AdminMaterialDetailMapper {
    int countByExample(AdminMaterialDetailExample example);

    int deleteByExample(AdminMaterialDetailExample example);

    int deleteByPrimaryKey(Long id);

    int insert(AdminMaterialDetail record);

    int insertSelective(AdminMaterialDetail record);

    List<AdminMaterialDetail> selectByExample(AdminMaterialDetailExample example);

    AdminMaterialDetail selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") AdminMaterialDetail record, @Param("example") AdminMaterialDetailExample example);

    int updateByExample(@Param("record") AdminMaterialDetail record, @Param("example") AdminMaterialDetailExample example);

    int updateByPrimaryKeySelective(AdminMaterialDetail record);

    int updateByPrimaryKey(AdminMaterialDetail record);

	List<AdminMaterialDetail> selectSuper(@Param("queryInfo") QueryInfo queryInfo,@Param("batchId") Long batchId,
			@Param("contractCode") String contractCode);

	int countSuper(@Param("batchId")Long batchId, @Param("contractCode") String contractCode);

	void saveBatchMaterialDetail(@Param("adminMaterial")List<AdminMaterialDetail> adminMaterial);

	List<AdminMaterialDetail> selectMaterialDetail(@Param("batchId")Long bathId, @Param("contractCode") String contractCode);
}